﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Temas/MasterPage.Master" AutoEventWireup="true" CodeBehind="EditarCargo.aspx.cs" Inherits="Talento21.Pages.Trabajador.EditarCargo" %>
<%@ MasterType VirtualPath="~/Temas/MasterPage.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<asp:FormView ID="FormView1" runat="server" Width="100%" 
        DataSourceID="ObjectDataSource1" DefaultMode="Edit" 
        onitemupdated="FormView1_ItemUpdated" onitemupdating="FormView1_ItemUpdating">
        <InsertItemTemplate>
    </InsertItemTemplate>   
    <EditItemTemplate>
  
    
    

<fieldset class="form-horizontal">
        <legend>Nueva Cargo</legend>
     <div class="control-group">
                    <label class="control-label">Nombre:</label>
                     <div class="controls">
                        <asp:TextBox ID="NombreTextBox" runat="server" Text='<%# Bind("Nombre") %>' />
                        <asp:HiddenField ID="hidden" runat="server" Value='<%# Bind("Id_cargo") %>' />
                       </div>
    </div>
         <div class="control-group">
                    <label class="control-label">
        Descripcion:</label>
        <div class="controls">
        <asp:TextBox ID="DescripcionTextBox" runat="server" 
            Text='<%# Bind("Descripcion") %>' />
        </div>
    </div>
    <div class="form-actions">
        <asp:LinkButton CssClass="btn btn-primary" ID="InsertButton" runat="server" CausesValidation="True" 
            CommandName="Update" Text="Modificar" />

    </div>
</fieldset>        
    </EditItemTemplate>
    
    <ItemTemplate>
    </ItemTemplate>
</asp:FormView>


    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DataObjectTypeName="Talento21.Modelo.InfCargosEmp" InsertMethod="Crear" 
        SelectMethod="ObtenerCargoPorId" 
        TypeName="Talento21.Negocio.Servicio.SrvCargosEmp" 
        UpdateMethod="Modificar">
        <SelectParameters>
            <asp:QueryStringParameter Name="id" QueryStringField="Id" Type="Int32" />
        </SelectParameters>
        
    </asp:ObjectDataSource>



</asp:Content>
